/*
 * hmac-sha256.h
 * Copyright (C) 2017 Adrian Perez <aperez@igalia.com>
 *
 * Distributed under terms of the MIT license.
 */

#ifndef HMAC_SHA256_H
#define HMAC_SHA256_H

#include <stddef.h>
#include <stdint.h>





void pr_sha(unsigned char* s, int t);

void sha256
(
const char* d, /* data */
int ld, /* length of data in bytes */
char* out, /* output buffer, at least "t" bytes */
int* t
);

void hmac_sha256
(
const char* k, /* secret key */
int lk, /* length of the key in bytes */
const char* d, /* data */
int ld, /* length of data in bytes */
char* out, /* output buffer, at least "t" bytes */
int* t
);

#endif /* !HMAC_SHA256_H */
